package com.base.mapper.voipmapper;

import com.base.po.voip.TourGoods;
import com.base.po.voip.TourGoodsExample;
import java.util.List;

import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface TourGoodsMapper {
    int countByExample(TourGoodsExample example);

    int deleteByExample(TourGoodsExample example);

    int deleteByPrimaryKey(String id);

    int insert(TourGoods record);

    int insertSelective(TourGoods record);

    List<TourGoods> selectByExample(TourGoodsExample example);

    List<TourGoods> selectByAll(@Param("page") Page page, @Param("parentid") String parentid,
                                    @Param("shopid") String shopid, @Param("goodstext") String goodstext,
                                    @Param("firstclassify") String firstclassify, @Param("secondclassify") String secondclassify,
                                    @Param("status") Byte status);

    List<TourGoods> selectSeach(@Param("page") Page page, @Param("parentid") String parentid,
                                @Param("shopid") String shopid, @Param("firstclassify") String firstclassify,
                                @Param("isgoods") Byte isgoods);

    TourGoods selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TourGoods record, @Param("example") TourGoodsExample example);

    int updateByExample(@Param("record") TourGoods record, @Param("example") TourGoodsExample example);

    int updateByPrimaryKeySelective(TourGoods record);

    int updateByPrimaryKey(TourGoods record);

    int countByAll(@Param("parentid") String parentid, @Param("shopid") String shopid,
                   @Param("goodstext") String goodstext, @Param("firstclassify") String firstclassify,
                   @Param("secondclassify") String secondclassify, @Param("status") Byte status);

    int countSeach(@Param("parentid") String parentid, @Param("shopid") String shopid,
                   @Param("firstclassify") String firstclassify, @Param("isgoods") Byte isgoods);
}